import request from '@/utils/request'

// 查询换塘记录列表
export function listHuanPondRecord(query) {
  return request({
    url: '/busi/huanPondRecord/list',
    method: 'get',
    params: query
  })
}

// 查询换塘记录详细
export function getHuanPondRecord(id) {
  return request({
    url: '/busi/huanPondRecord/' + id,
    method: 'get'
  })
}

// 新增换塘记录
export function addHuanPondRecord(data) {
  return request({
    url: '/busi/huanPondRecord',
    method: 'post',
    data: data
  })
}

// 修改换塘记录
export function updateHuanPondRecord(data) {
  return request({
    url: '/busi/huanPondRecord',
    method: 'put',
    data: data
  })
}

// 删除换塘记录
export function delHuanPondRecord(id) {
  return request({
    url: '/busi/huanPondRecord/' + id,
    method: 'delete'
  })
}

// 导出换塘记录
export function exportHuanPondRecord(query) {
  return request({
    url: '/busi/huanPondRecord/export',
    method: 'get',
    params: query
  })
}